package test2;

public class Circular {
    private int r;

    public int getR() {
        return r;
    }

    public void setR(int r) {
        this.r = r;
    }

    public  Circular(int r){
        this.r=r;
    }

    public void getPerimeter(){
        System.out.println("圆形周长："+(this.r*3.14*2));
    }
}
